/*
 * @Author: weikang
 * @Description:
 * @Date: 2024-02-20 21:56:10
 * @LastEditTime: 2024-02-24 11:44:54
 * @FilePath: \env-manager-pc\src\views\assets\install\page.ts
 */
export const rules = {

}

export interface InstallForm {
  assetObjIDs: string[]
  remark: ''
}

export function useInitForm(): { formData: Ref<InstallForm>, initForm: () => void } {
  const getData = (): InstallForm => ({
    remark: '',
    assetObjIDs: [],
  })
  const formData = ref<InstallForm>(getData())

  const initForm = () => {
    formData.value = getData()
  }

  return { formData, initForm }
}
